#! /bin/bash
#system manage
# v1.0 by wangtao 2019/01/13

menu(){
	cat <<-EOF
	#################################
	#	h. help			#
	#	f. disk partiton	#
	#	d. filesystem mount	#
	#	m. memory		#
	#	u. system load		#
	#	q. exit			#
	#################################
	EOF
}
menu

while true
do
	read -p "please input [h for help]: " action
	case "$action" in
	h)
		clear
		menu
		;;
	f)
		fdisk -l
		;;
	d)
		df -Th
		;;
	m)
		free -m
		;;
	u)
		uptime
		;;
	q)
		break
		;;
	"")
		;;
	*)
		echo "error"	
	esac
done
echo "finish..."
